.class Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;
.super Ljava/lang/Object;
.source "UpUsersActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->requestMoreUsers()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    .prologue
    .line 231
    iput-object p1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 266
    iget-object v0, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mLoadingBar:Landroid/widget/ProgressBar;
    invoke-static {v0}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$700(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/widget/ProgressBar;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 267
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 231
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 10
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    const/4 v2, 0x1

    const/16 v6, 0x8

    const/4 v3, 0x0

    .line 235
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # operator++ for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mCurPage:I
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1208(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)I

    .line 237
    const-string v1, "up_users"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/model/CommonUserModel;->parseUserModels(Lorg/json/JSONArray;)Ljava/util/ArrayList;

    move-result-object v0

    .line 238
    .local v0, "users":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/CommonUserModel;>;"
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_2b

    .line 239
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mUsers:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$400(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 240
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mAdapter:Lcom/brixd/niceapp/userinfo/adapter/UpUserAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1300(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Lcom/brixd/niceapp/userinfo/adapter/UpUserAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/userinfo/adapter/UpUserAdapter;->notifyDataSetChanged()V

    .line 243
    :cond_2b
    iget-object v4, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/16 v5, 0xa

    if-le v1, v5, :cond_80

    move v1, v2

    :goto_36
    # setter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mHasMoreUsers:Z
    invoke-static {v4, v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$602(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;Z)Z

    .line 244
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mHasMoreUsers:Z
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$600(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Z

    move-result v1

    if-eqz v1, :cond_82

    .line 245
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mLoadingTxt:Landroid/widget/TextView;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1400(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/widget/TextView;

    move-result-object v1

    iget-object v4, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    const v5, 0x7f0c0100

    invoke-virtual {v4, v5}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 246
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mShowMore:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$800(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/view/View;->setEnabled(Z)V

    .line 247
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1500(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-eqz v1, :cond_71

    .line 248
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1500(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 259
    :cond_71
    :goto_71
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mLoadingBar:Landroid/widget/ProgressBar;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$700(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/widget/ProgressBar;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 261
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->updateUsersCount()V
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1600(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)V

    .line 262
    return-void

    :cond_80
    move v1, v3

    .line 243
    goto :goto_36

    .line 252
    :cond_82
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mLoadingTxt:Landroid/widget/TextView;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1400(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/widget/TextView;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    const v4, 0x7f0c00b3

    invoke-virtual {v2, v4}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 253
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mShowMore:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$800(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setEnabled(Z)V

    .line 254
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1500(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-eq v1, v6, :cond_71

    .line 255
    iget-object v1, p0, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity$6;->this$0:Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->mFooterContent:Landroid/view/View;
    invoke-static {v1}, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;->access$1500(Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    goto :goto_71
.end method
